package com.ylx.code;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * ClassName: MarkCodeApplication <br/>
 * Description: <br/>
 * date: 2023/10/23 15:44<br/>
 *
 * @author yanglixin<br />
 */
@Slf4j
@EnableDiscoveryClient
@ServletComponentScan//扫描web原生注解  可以加过滤器等
@SpringBootApplication//springboot启动类
@ComponentScan("com.ylx")
@EnableCaching//开启缓存注解扫描功能
@MapperScan("com.ylx.code.mapper")//扫描数据访问层的接口的包名
public class MarkCodeApplication {

    public static void main(String[] args) {
        SpringApplication.run(MarkCodeApplication.class);
        log.info("======>8888888888<=====");
        log.info("======>项目启动成功<=====");
        //log.info("======>数据库地址: 119.23.222.5<=====");
        log.info("======>8888888888<=====");
    }
}

